
function setPageTotal(){
var aPage=document.getElementsByName("pageTotal");
var iTtl=aPage.length;
for(var i=iTtl;i-->0;){aPage[i].innerText=iTtl;}
return true;
}
function shutWin(){window.close();}
function initPrnt(){
document.ondblclick=shutWin;
setPageTotal();
return window.print();
}